const panelTabList = [
  {
    name: 'ElementBasicInfo',
    label: 'panel.basic'
  },
  {
    name: 'ElementAssignee',
    label: 'panel.assigneeSettings'
  },
  {
    name: 'ElementCondition',
    label: 'panel.conditionalSettings'
  },
  {
    name: 'ElementGateway',
    label: 'panel.gatewaySettings'
  },
  {
    name: 'ElementEvents',
    label: 'panel.globalEvents'
  },
  {
    name: 'ElementVariables',
    label: 'panel.globalVariables'
  },
  {
    name: 'ElementSubProcess',
    label: 'panel.subProcessSettings'
  },
  {
    name: 'ElementCallActivity',
    label: 'panel.callActivitySettings'
  },
  {
    name: 'ElementServiceTask',
    label: 'panel.serviceTaskSettings'
  },
  {
    name: 'ElementVariableSetTask',
    label: 'panel.VariableSettings'
  },
  {
    name: 'ElementVariablePrintTask',
    label: 'panel.VariableSettings'
  },
]

export const getTabLabel = (name: string) => {
  const item = panelTabList.find((element) => element.name === name)
  return item && item.label ? item.label : '默认标题'
}
